<div id="content">
    <div id="title_content">Ajouter actualité</div>
    <?php echo form_open_multipart('admin_activites/add_actualite'); ?>
    <table class="form_content" width="100%">
        <tr>
            <td>Titre <span style="color:red">*</span></td><td>
                <?php if (form_error('title') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('title'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" name="title" class="form_input" value="<?php echo set_value('title') ?>"/></td>
        </tr>
        <tr>
            <td>Description <span style="color:red">*</span></td><td>
                <?php if (form_error('description') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('description'), '<p>', '</p>'); ?></div> <?php } ?>
                <textarea name="description" cols="65" rows="5"><?php echo set_value('description'); ?></textarea> 
        </tr>
        <td>Contenu <span style="color:red">*</span></td><td>
            <?php if (form_error('content') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('content'), '<p>', '</p>'); ?></div> <?php } ?>
            <?php
            $data = array(
                'name' => 'content',
                'id' => 'content',
                'height' => 400,
                'width' => 610,
                'value' => html_entity_decode(set_value('content')),
                'type' => 'text'
            );
            echo form_fckeditor($data);
            ?>
        </td>
        </tr>

        <tr>
            <td></td>
            <td>
                <input type="submit" name="submit"  value="Enregistrer"/>
                <input type="button" name="button" value="Annuler et revenir" onclick="document.location.href='<?php echo site_url('admin_news/list_news'); ?>'"/>
            </td>
        </tr>

    </table>
</form>
</div>
<!--END content-->
